package com.googlecode.serialization;

public abstract class AbsPrimitiveTypeTranscoder<T> extends AbsSerializingTranscoder implements Transcoder<T> {

	protected boolean primitiveAsString;
	protected TranscoderHelper transcoderHelper = new TranscoderHelper(true);

	@Override
	public boolean isPackZeros() {
		return this.transcoderHelper.isPackZeros();
	}

	@Override
	public boolean isPrimitiveAsString() {
		return this.primitiveAsString;
	}

	@Override
	public void setPackZeros(boolean packZeros) {
		this.transcoderHelper.setPackZeros(packZeros);
	}

	@Override
	public void setPrimitiveAsString(boolean primitiveAsString) {
		this.primitiveAsString = primitiveAsString;
	}

}
